/**
 **************************************
 **   @author: 野狼上校               **
 **   @since: 2024-07-18 15:20       **
 **   @version: 1.0                  **
 **************************************
 * <P>
 * 阈值相关的Api
 */
import instance, {RespResult} from "@/api/index.ts"

/*分页查询阈值数据*/
export const getThresholdsByPage = (data: any): Promise<RespResult> => {
    return instance({
        url: `/blade/threshold/findThresholdsByPage`,
        method: "GET",
        params: data
    })
}

/* 详情 */
export const getThresholdsDescByPage = (data: any): Promise<RespResult> => {
    return instance({
        url: `/blade/threshold/findThresholdsByDeviceGuid`,
        method: "GET",
        params: data
    })
}


/* 详情 */
export const updateThreshold = (data: any): Promise<RespResult> => {
    return instance({
        url: `/blade/threshold/updateThreshold`,
        method: "POST",
        data: data
    })
}

